/* Includes */
/* -------- */
#include "HALOutputs.h"
#include "MALioapi.h"


/**************************************************************
 *  Name                 :	Init_HighBeamLights_hardware
 *  Description          :  Initialization for  HighBeamLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_HighBeamLights_hardware 			(void)
{
	IO_SetPinFctn(HighBeamLights, PA_GPIO);
	IO_SetPinAsOutput(HighBeamLights);
}

/**************************************************************
 *  Name                 :	Init_LowBeamLights_hardware
 *  Description          :  Initialization for LowBeamLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_LowBeamLights_hardware 			(void)
{
	IO_SetPinFctn(LowBeamLights, PA_GPIO);
	IO_SetPinAsOutput(LowBeamLights);
}

/**************************************************************
 *  Name                 :	Init_RightFrontParkingLights_hardware
 *  Description          :  Initialization for RightFrontParkingLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_RightFrontParkingLights_hardware 	(void)
{
	/*IO_SetPinFctn(RightFrontParkingLights, PA_GPIO);
	IO_SetPinAsOutput(RightFrontParkingLights);*/
}

/**************************************************************
 *  Name                 :	Init_LeftFrontParkingLights_hardware
 *  Description          :  Initialization for LeftFrontParkingLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_LeftFrontParkingLights_hardware 	(void)
{
	/*IO_SetPinFctn(LeftFrontParkingLights, PA_GPIO);
	IO_SetPinAsOutput(LeftFrontParkingLights);*/
}

/**************************************************************
 *  Name                 :	Init_RightRearParkingLights_hardware
 *  Description          :  Initialization for RightRearParkingLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_RightRearParkingLights_hardware 	(void)
{
	IO_SetPinFctn(RightRearParkingLights, PA_GPIO);
	IO_SetPinAsOutput(RightRearParkingLights);
}

/**************************************************************
 *  Name                 :	Init_LeftRearParkingLights_hardware
 *  Description          :  Initialization for LeftRearParkingLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_LeftRearParkingLights_hardware 	(void)
{
	IO_SetPinFctn(LeftRearParkingLights, PA_GPIO);
	IO_SetPinAsOutput(LeftRearParkingLights);
}

/**************************************************************
 *  Name                 :	Init_ReverseLights_hardware
 *  Description          :  Initialization for ReverseLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_ReverseLights_hardware 			(void)
{
	IO_SetPinFctn(ReverseLights, PA_GPIO);
	IO_SetPinAsOutput(ReverseLights);
}

/**************************************************************
 *  Name                 :	Init_RightFrontTurnSignal_hardware
 *  Description          :  Initialization for RightFrontTurnSignal hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_RightFrontTurnSignal_hardware 	(void)
{
	MALbeMIOS_initEMIOS0();
	MALbeMIOS_initEMIOS0_ch7();
	IO_SetPinFctn(RightFrontTurnSignal,PA_GPIO);	
}

/**************************************************************
 *  Name                 :	Init_LeftFrontTurnSignal_hardware
 *  Description          :  Initialization for LeftFrontTurnSignal hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_LeftFrontTurnSignal_hardware 		(void)
{
	MALbeMIOS_initEMIOS0();
	MALbeMIOS_initEMIOS0_ch6();
	IO_SetPinFctn(LeftFrontTurnSignal,PA_GPIO);	
}

/**************************************************************
 *  Name                 :	Init_RightRearTurnSignal_hardware
 *  Description          :  Initialization for RightRearTurnSignal hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_RightRearTurnSignal_hardware 		(void)
{
	IO_SetPinFctn(RightRearTurnSignal, PA_GPIO);
	IO_SetPinAsOutput(RightRearTurnSignal);
}

/**************************************************************
 *  Name                 :	Init_LeftRearTurnSignal_hardware
 *  Description          :  Initialization for LeftRearTurnSignal hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_LeftRearTurnSignal_hardware 		(void)
{
	IO_SetPinFctn(LeftRearTurnSignal, PA_GPIO);
	IO_SetPinAsOutput(LeftRearTurnSignal);
}

/**************************************************************
 *  Name                 :	Init_RightStopLights_hardware
 *  Description          :  Initialization for RightStopLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_RightStopLights_hardware 			(void)
{
	IO_SetPinFctn(RightStopLights, PA_GPIO);
	IO_SetPinAsOutput(RightStopLights);
}

/**************************************************************
 *  Name                 :	Init_LeftStopLights_hardware
 *  Description          :  Initialization for LeftStopLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_LeftStopLights_hardware 			(void)
{
	IO_SetPinFctn(LeftStopLights, PA_GPIO);
	IO_SetPinAsOutput(LeftStopLights);
}

/**************************************************************
 *  Name                 :	Init_RightEmergencyLigths_hardware
 *  Description          :  Initialization for RightEmergencyLigths hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_RightEmergencyLigths_hardware 	(void)
{
	MALbeMIOS_initEMIOS0();
	MALbeMIOS_initEMIOS0_ch5();
	IO_SetPinFctn(RightEmergencyLigths,PA_GPIO);
}

/**************************************************************
 *  Name                 :	Init_LeftEmergencyLights_hardware
 *  Description          :  Initialization for LeftEmergencyLights hardware
 *  Parameters           :  none
 *  Return               :	none
 *  Critical/explanation :  No
 **************************************************************/
void Init_LeftEmergencyLights_hardware 		(void)
{
	MALbeMIOS_initEMIOS0();
	MALbeMIOS_initEMIOS0_ch4();
	IO_SetPinFctn(LeftEmergencyLights,PA_GPIO);
}

		